import { CHANNEL_LIST } from '../constants/channels'

export default function channels(state = [], action) {
  switch (action.type) {
    case CHANNEL_LIST:
      // 后端返回啥，存啥
      return action.payload
    default:
      return state
  }
}